package com.bank.service.impl;

import com.bank.service.ProductService;
import com.bank.service.pojo.Product;
import org.apache.dubbo.config.annotation.DubboService;

import java.util.Arrays;
import java.util.List;
@DubboService(timeout = 5000,version = "1.0",group = "product-server")
public class ProductServiceImpl implements ProductService {

    @Override
    public List<Product> selectProductList() {
        logger.info("商品服务查询商品信息......");
        return Arrays.asList(new Product(1,"手机",1,5800D),
                new Product(2,"笔记本",2,6880D),
                new Product(3,"平板",3,2000D));
    }
}
